Skip to content

Conversation

@Arvindthiru
Copy link
Contributor

@Arvindthiru Arvindthiru commented Dec 11, 2024

Description of your changes

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@Arvindthiru Arvindthiru changed the title fix: account for nil CRP policy fix: account for nil CRP policy in eviction controller Dec 11, 2024
Copy link
Contributor

@michaelawyu michaelawyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit. LGTM.

michaelawyu
michaelawyu previously approved these changes Dec 12, 2024
@Arvindthiru Arvindthiru changed the title fix: account for nil CRP policy in eviction controller fix: use CRP defaulter to account for nil CRP policy in eviction controller Dec 12, 2024
},
},
},
crp: ptr.To(buildTestPickAllCRP(testCRPName)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why sometimes we use this while sometimes we just use testCRP

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testCRP is only used for validateEviction test where we use defaulter to set default values on the CRP. For all the other tests we can build CRP which doesn't need to have all default values

@Arvindthiru Arvindthiru merged commit 6a43026 into Azure:main Dec 18, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants